import request from '@/utils/request'

// 查询订单售后列表
export function listBiOrderAftersales(query) {
  return request({
    url: '/live/BiOrderAftersales/list',
    method: 'get',
    params: query
  })
}

// 查询订单售后详细
export function getBiOrderAftersales(id) {
  return request({
    url: '/live/BiOrderAftersales/' + id,
    method: 'get'
  })
}

// 新增订单售后
export function addBiOrderAftersales(data) {
  return request({
    url: '/live/BiOrderAftersales',
    method: 'post',
    data: data
  })
}

// 修改订单售后
export function updateBiOrderAftersales(data) {
  return request({
    url: '/live/BiOrderAftersales',
    method: 'put',
    data: data
  })
}

// 删除订单售后
export function delBiOrderAftersales(id) {
  return request({
    url: '/live/BiOrderAftersales/' + id,
    method: 'delete'
  })
}
